<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:if test="${empty visitor ||visitor.adminGrade > 0}">
	<c:redirect url="wel!welcome.z" />
</c:if>
<head>
	<title>${user.username }-用户信息</title>
</head>

<body>
	<form class="head" action="#" method="post">
		<button type="submit" onClick="buttonAction(this,'u!toUpdate.z?id=${user.id }')">
			修改用户信息
		</button>
		<button type="submit" class="askAgain" onClick="buttonAction(this,'u!delete.z?id=${user.id}')">
			删除用户
		</button>
		<button type="submit" onClick="buttonAction(this,'u!all.z')">
			返回列表
		</button>
	</form>
	
	<table class="list">
		<thead>

			<tr title="点击表头可排序">
				<th>
					用户名
				</th>
				<th>
					真名
				</th>
				<th>
					用户密码
				</th>
			</tr>
		</thead>

			<tr>
				<td>
					${user.username }
				</td>
				<td>
					${user.realname }
				</td>
				<td>
					不显示
				</td>
			</tr>
	</table>

</body>